#ifndef __USART_H__
#define __USART_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "FreeRTOS.h"
#include "main.h"
#include "queue.h"
#include "task.h"

extern QueueHandle_t rxQueueHandle;

#define CMD_HEADER 0xAA
extern UART_HandleTypeDef huart4;

extern UART_HandleTypeDef huart1;

extern uint8_t uart_data;

void MX_UART4_Init(void);
void MX_USART1_UART_Init(void);
void StartUsartTask(void const* argument);
void reset_uart(void);

#ifdef __cplusplus
}
#endif

#endif /* __USART_H__ */
